package org.abstractmeta.commandify.generator.test;

import javax.inject.Qualifier;
import javax.persistence.Id;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Collection;
import java.util.Map;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;

/**
 * A test type to test composition
 */
public class Composition {


    private Map<String, Message> messageMap;

    private Collection<Message> messageCollection;

    public Map<String, Message> getMessageMap() {
        return messageMap;
    }

    public void setMessageMap(Map<String, Message> messageMap) {
        this.messageMap = messageMap;
    }

    public Collection<Message> getMessageCollection() {
        return messageCollection;
    }

    public void setMessageCollection(Collection<Message> messageCollection) {
        this.messageCollection = messageCollection;
    }

    public static class Message {
        @Id
        private int id;
        private String name;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }



}
